package com.ssy.lingxi.product.repository.warehouse;

import com.ssy.lingxi.product.entity.warehouse.PositionInventoryDeductionRecord;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* 仓位扣减记录
* @author wrc
* @date 2020/7/8
*/
@Repository
public interface PositionInventoryDeductionRecordRepository extends JpaRepository<PositionInventoryDeductionRecord, Long> {


    List<PositionInventoryDeductionRecord> findByFreightSpaceIdInAndTypeEquals(List<Long> freightSpaceIds, Integer type);

    List<PositionInventoryDeductionRecord> findByOrderIdEqualsAndTypeEqualsAndStateEquals(Long orderId, Integer type, Integer state,Sort sort);
}
